/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="TIPOSAIDASADT")
public class TipoSaidaSadtProteu implements Serializable{

    @Id
    @Column(name="TSS_ST_CODIGO")
    private String tssStCodigo;
    @Column(name="TSS_ST_DESCRICAO")
    private String tssStDescricao;

    public String getTssStCodigo() {
        return tssStCodigo;
    }

    public void setTssStCodigo(String tssStCodigo) {
        this.tssStCodigo = tssStCodigo;
    }

    public String getTssStDescricao() {
        return tssStDescricao;
    }

    public void setTssStDescricao(String tssStDescricao) {
        this.tssStDescricao = tssStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final TipoSaidaSadtProteu other = (TipoSaidaSadtProteu) obj;
        if ((this.tssStCodigo == null) ? (other.tssStCodigo != null) : !this.tssStCodigo.equals(other.tssStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 83 * hash + (this.tssStCodigo != null ? this.tssStCodigo.hashCode() : 0);
        return hash;
    }

    

}
